<FORM method="post" action="/backend/managergroups/save/">
<div class="form">
    <H1>Группы пользователей</H1>
    <div class="operation"><a href="{$fvConfig->get('dir_web_root')}managergroups/" onclick="go('{$fvConfig->get('dir_web_root')}managergroups/'); return false;" class="left">вернутся к списку</a><div style="clear: both;"></div></div>
<div style="width: 50%; float: left;">

    <label for="group_name">Название</label> <input type="text" id="group_name" name="mg[group_name]" value="{$ManagerGroup->group_name}" /><br/>
    <label for="info">Описание</label> <textarea rows="3" id="info" name="mg[info]">{$ManagerGroup->info}</textarea><br clear="all">
    <div class="buttonpanel">
        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
    </div>
    <input type="hidden" name="id" id="id" value="{$ManagerGroup->getPk()}" />
    <input type="hidden" id="redirect" name="redirect" value="" />
</div>
<div style="float: left; width: 40%; margin-left: 10px;">
    <H2>Права доступа группы</H2>
{foreach item=acl from=$fvConfig->get('acls') key=acl_name}
    <input type="checkbox" name="mg[permitions][]" value="{$acl_name}" id="mg_permitions_{$acl_name}" {if in_array($acl_name, $ManagerGroup->permitions)}checked="true"{/if}>
    <label for="mg_permitions_{$acl_name}" class="checkbox">{$acl}</label> <br />
    
{/foreach}
</div>
<div style="clear: both;" />
</div>


</FORM>
